package com.andova.component.config;

import androidx.annotation.IntRange;
import androidx.annotation.Nullable;

/**
 * Created by Administrator on 2018-08-16.
 *
 * @author kzaxil
 * @since 0.0.2
 */
public abstract class Config {
    @Nullable
    protected abstract ValueBean url();

    protected abstract boolean log();

    @Nullable
    protected abstract ConfigBean[] node();

    @IntRange(from = 1)
    protected abstract int version();

    /**
     * 配置项是否生效
     */
    protected boolean enable() {
        return true;
    }

    /**
     * 相同节点名是否覆盖
     */
    @Deprecated
    boolean sameNodeOverride() {
        return true;
    }
}
